# # _*_ coding: UTF-8 _*_
# from __future__ import unicode_literals
#
# from django.db import migrations
#
# from APKManager.models import WbModel, WbRole
# import logging
#
#
# def create_models(apps, schema_editor):
#     # We can't import the Person model directly as it may be a newer
#     # version than this migration expects. We use the historical version.
#     try:
#         WbRole.objects.get_or_create(name="CP")
#         WbRole.objects.get_or_create(name="SP")
#
#         WbModel.get_or_create_model("game-type", "游戏类型", (("Local", "单机游戏", ""),
#                                                           ("Network", "网络游戏", "")))
#         WbModel.get_or_create_model("pay-mode", "支付模式", (("NoPayment", "免费", ""),
#                                                          ("PayForMonth", "包月", ""),
#                                                          ("PayForPurchase", "内购", "")))
#
#         WbModel.get_or_create_model("operation-mode", "操作模式", (("ByRemote", "远程", ""),
#                                                                ("ByHandle", "手柄", ""),
#                                                                ("ByPhone", "电话", ""),
#                                                                ("BySomatosensory", "体感", ""),
#                                                                ("ByMice", "鼠标", "")))
#
#         WbModel.get_or_create_model("game-category", "游戏分类", (("RPG", "RPG", ""),
#                                                               ("Chess", "棋牌游戏", ""),
#                                                               ("ParentAndChild", "亲子游戏", ""),
#                                                               ("Action", "动作游戏", ""),
#                                                               ("Classic", "经典游戏", ""),
#                                                               ("Operation", "操作游戏", ""),
#                                                               ("Flying", "飞行游戏", ""),
#                                                               ("Puzzle", "益智游戏", ""),
#                                                               ("Others", "其它", "")))
#
#         WbModel.get_or_create_model("game-style", "游戏风格", (("3D", "3D", ""),
#                                                            ("FairyAndKnight", "仙侠", ""),
#                                                            ("SwordsMan", "魔幻", ""),
#                                                            ("ScienceFiction", "武侠", ""),
#                                                            ("HengBan", "科幻", ""),
#                                                            ("Animation", "动漫", ""),
#                                                            ("Action", "动作", ""),
#                                                            ("Historical", "历史", ""),
#                                                            ("QVersion", "Q版", ""),
#                                                            ("Eurame", "欧美", ""),
#                                                            ("Others", "其它", "")))
#
#         WbModel.get_or_create_model("release-mode", "发布模式", (("Now", "立即发布", ""),
#                                                              ("Will", "预发布", "")))
#
#         WbModel.get_or_create_model("bank", "银行", (('工商银行', '工商银行', ""),
#                                                    ('建设银行', '建设银行', ""),
#                                                    ('招商银行', '招商银行', ""),
#                                                    ('农业银行', '农业银行', ""),
#                                                    ('中国交通银行', '中国交通银行', ""),
#
#                                                    ('广发银行', '广发银行', ""),
#                                                    ('中国银行', '中国银行', ""),
#                                                    ('中国民生银行', '中国民生银行', ""),
#                                                    ('华夏银行', '华夏银行', ""),
#                                                    ('兴业银行', '兴业银行', ""),
#                                                    ('中国光大银行', '中国光大银行', ""),
#                                                    ('邮政储蓄', '邮政储蓄', ""),
#                                                    ('中信银行', '中信银行', ""),
#                                                    ('上海银行', '上海银行', ""),
#                                                    ('浦东发展银行', '浦东发展银行', ""),
#                                                    ('北京银行', '北京银行', ""),
#                                                    ('平安银行', '平安银行', ""),
#                                                    ('南京银行', '南京银行', ""),
#                                                    ('杭州银行', '杭州银行', ""),
#                                                    ('上海农商银行', '上海农商银行', ""),
#                                                    ('江苏银行', '江苏银行', ""),
#                                                    ('成都银行', '成都银行', ""),
#                                                    ('重庆农村商业银行', '重庆农村商业银行', ""),
#                                                    ('厦门银行', '厦门银行', ""),
#                                                    ('宁波银行', '宁波银行', ""),
#                                                    ('北京农村商业银行', '北京农村商业银行', ""),
#                                                    ('恒丰银行', '恒丰银行', ""),
#                                                    ('江西银行', '江西银行', ""),
#                                                    ('上海银行', '上海银行', ""),
#                                                    ('西安银行', '西安银行', "")))
#     except Exception as e:
#         logging.error(e.message)
#
#
# class Migration(migrations.Migration):
#     dependencies = [
#         ('Auth', '0001_initial'),
#         ('APKManager', '0001_initial'),
#     ]
#
#     operations = [
#         migrations.RunPython(create_models),
#     ]
